// import { queryFactoryList } from "@/api/modules/operation";

export const useRecordSearchOption = (): Array<CommonSearch.SearchOption> => {
  const devId: CommonSearch.SearchOption = {
    label: "科室",
    key: "devId",
    value: "",
    type: "select"
    // axiosApi: queryFactoryList,
    // mapOption: ({ areaId: value = "", areaCode: label = "" }: any) => ({ value, label })
  };

  const factory: CommonSearch.SearchOption = {
    label: "厂区",
    key: "factory",
    value: "",
    type: "select",
    placeholder: "请输入载送物质"
  };

  const system: CommonSearch.SearchOption = {
    label: "系统",
    key: "system",
    value: "",
    type: "select",
    placeholder: "请选择状态"
  };
  const shebei: CommonSearch.SearchOption = {
    label: "所属设备",
    key: "shebei",
    value: "",
    type: "select",
    placeholder: "请选择状态"
  };
  const haocai: CommonSearch.SearchOption = {
    label: "耗材名称",
    key: "haocai",
    value: "",
    type: "select",
    placeholder: "请选择状态"
  };
  return [factory, devId, , system, shebei, haocai];
};
export const useRecordTableCloumns = (): Array<CommonTable.TableCloumnsType> => {
  return [
    {
      label: "所属设备",
      prop: "shebei",
      width: 150
    },
    {
      label: "耗材名称",
      prop: "haocai",
      width: 150
    },
    {
      label: "耗材编码",
      prop: "start",
      width: 150
    },
    {
      label: "系统",
      prop: "eding",
      width: 150
    },
    {
      label: "规格型号",
      prop: "yuce",
      width: 120
    },

    {
      label: "品牌",
      prop: "yacha",
      width: 120
    },
    {
      label: "单位",
      prop: "yacha",
      width: 120
    },
    {
      label: "数量",
      prop: "yacha",
      width: 120
    },
    {
      label: "出库单号",
      prop: "yacha",
      width: 120
    },
    {
      label: "开始使用时间",
      prop: "yacha",
      width: 120
    },
    {
      label: "结束使用时间",
      prop: "yacha",
      width: 120
    },
    {
      label: "实际使用时长",
      prop: "nextTime",
      width: 120
    },
    {
      label: "额定使用时长",
      prop: "nextTime",
      width: 120
    },
    {
      label: "预测使用时长",
      prop: "nextTime",
      width: 120
    }
  ];
};
